package com.aspose.cells;

class zul extends zbz {
   zul() {
      this.c(35);
   }

   void a(zuk var1) {
      Object var2 = null;
      byte[] var3;
      if (var1.i()) {
         var3 = new byte[]{(byte)var1.b};
      } else {
         var3 = zakq.a(var1.e());
      }

      this.a((short)(8 + var3.length));
      if (var1.h() != null) {
         this.b(this.d() + (short)var1.h().length);
      } else if (var1.a().a() == 0) {
         this.b(this.d() + 2);
      }

      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.g()), 0, this.c, 0, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b()), 0, this.c, 2, 4);
      if (var1.i()) {
         this.c[6] = 1;
      } else {
         this.c[6] = (byte)var1.e().length();
         this.c[7] = (byte)(var3.length == var1.e().length() ? 0 : 1);
      }

      System.arraycopy(var3, 0, this.c, 8, var3.length);
      if (var1.h() != null) {
         System.arraycopy(var1.h(), 0, this.c, 8 + var3.length, var1.h().length);
      }

   }
}
